





//
//  XQDetailModel.m
//  房源、商铺、写字楼详情页
//
//  Created by MB__Lee on 2018/5/24.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "XQDetailModel.h"

#import "NSString+CaculateLenght.h"

@implementation XQDetailModel
-(NSMutableArray *)getTableviewDataSource{
    NSMutableArray *mut = [NSMutableArray array];
//    1、小区名
 
    OnelabelModel *one = [[OnelabelModel alloc] init];
    one.name = @"小 区 名:";
    one.content = self.name;
//    2、物业费  总户数
    TwoLabelModel *two = [[TwoLabelModel alloc] init];
    two.name1 = @"物 业 费:";
    two.content1 = self.d_wuyefei;
    two.name2 = @"总 户 数:";
    two.content2 =  self.d_hushu;

//    3、建造年代  停车位
    TwoLabelModel *three = [[TwoLabelModel alloc] init];
    three.name1 = @"建造年代:";
    three.content1 = self.d_niandai;
    three.name2 = @"停 车 位:";
    three.content2 = self.d_chewei;

//    4、绿化率
    OnelabelModel *four  = [[OnelabelModel alloc] init];
    four.name = @"绿 化 率:";
    four.content = self.d_lvhualv;

//    5、容积率
    OnelabelModel *five = [[OnelabelModel alloc] init];
    five.name = @"容 积 率:";
    five.content = self.d_rongjilv;
//
//    6、所在版块
    OnelabelModel *six = [[OnelabelModel alloc] init];
    six.name = @"所在版块:";
    six.content = self.district_name;
//    7、小区地址
    OnelabelModel *seven = [[OnelabelModel alloc] init];
    seven.name = @"小区地址:";
    seven.content = self.address;

//    8、物业公司
    OnelabelModel *eight =  [[OnelabelModel alloc] init];
    eight.name = @"物业公司:";
    eight.content = self.d_wuyegongsi;

//    9、开发商
    OnelabelModel *nine = [[OnelabelModel alloc] init];
    nine.name = @"开发商:";
    nine.content = self.d_kaifashang;
//    10、 小区介绍
    OnelabelModel *ten = [[OnelabelModel alloc] init];
    ten.name = @"小区介绍";
    ten.content = self.d_jieshao;
    
    
    NSMutableParagraphStyle *para = [[NSMutableParagraphStyle alloc] init];
    para.lineSpacing = 9;
    NSDictionary *dic = @{NSParagraphStyleAttributeName:para};
    CGFloat tenLabelHight =  [self.d_jieshao heightForStringFontSize:MBFont(16) width:SCREEN_WIDTH-115 dict:dic] + 40;
    _tenCellHight = tenLabelHight;
    [mut addObject:one];
    [mut addObject:two];
    [mut addObject:three];
    [mut addObject:four];
    [mut addObject:five];
    [mut addObject:six];
    [mut addObject:seven];
    [mut addObject:eight];
    [mut addObject:nine];
    [mut addObject:ten];
    
    return  mut;
}

@end
